import request from '@/utils/request'

// 查询工艺路线详情列表
export function listPro_rot_item(query) {
  return request({
    url: '/mes/pro_rot_item/list',
    method: 'get',
    params: query
  })
}

// 查询工艺路线详情详细
export function getPro_rot_item(id) {
  return request({
    url: '/mes/pro_rot_item/' + id,
    method: 'get'
  })
}

// 新增工艺路线详情
export function addPro_rot_item(data) {
  return request({
    url: '/mes/pro_rot_item',
    method: 'post',
    data: data
  })
}

// 修改工艺路线详情
export function updatePro_rot_item(data) {
  return request({
    url: '/mes/pro_rot_item',
    method: 'put',
    data: data
  })
}

// 删除工艺路线详情
export function delPro_rot_item(id) {
  return request({
    url: '/mes/pro_rot_item/' + id,
    method: 'delete'
  })
}

// 导出工艺路线详情
export function exportPro_rot_item(query) {
  return request({
    url: '/mes/pro_rot_item/export',
    method: 'get',
    params: query
  })
}

export function treeselect(prId) {
  return request({
    url: '/mes/pro_rot_item/treeselect'+"?prId="+prId,
    method: 'get'
  })
}

export function siteActList(query) {

  return request({
    url: '/mes/site_act/list',
    method: 'get',
    params: query
  })
}

//更新顺序
export function updateProItemNum(arrays) {

  return request({
    url: '/mes/pro_rot_item/update_order',
    method: 'put',
    data: arrays
  })

  //查询参数值


}
